
def tree2_cal(body2,body3,body3_std,tree2,tree_long2,body_long2,body_long3):

    for num1 in range(0,body_long2):
        for num2 in range(0,body_long3):#新连结强度=旧连结强度-调整系数*（输出-目标）*输出*（1-输出）*上级输出
            tree2[num1*body_long3+num2]=tree2[num1*body_long3+num2]-0.05*(body3[num2]-body3_std[num2])*body3[num2]*(1-body3[num2])*body2[num1]

    return tree2

